package com.sun.showcase.client.domain.mall;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

public class SubjectClassify implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
    /**
     * ID       db_column: id 
     */	
	private String id;
    /**
     * 名称       db_column: name
     */
	private String name;
    /**
     * 排序号       db_column: order_num
     */
	private Integer orderNum;
    /**
     * 创建时间       db_column: create_date
     */
	private java.util.Date createDate;
	//columns END

	public SubjectClassify(){
	}

	public SubjectClassify(
		String id
	){
		this.id = id;
	}

	public void setId(String value) {
		this.id = value;
	}

	public String getId() {
		return this.id;
	}
	public void setName(String value) {
		this.name = value;
	}

	public String getName() {
		return this.name;
	}
	public void setOrderNum(Integer value) {
		this.orderNum = value;
	}

	public Integer getOrderNum() {
		return this.orderNum;
	}
	public void setCreateDate(java.util.Date value) {
		this.createDate = value;
	}
	
	public java.util.Date getCreateDate() {
		return this.createDate;
	}

	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof SubjectClassify == false) return false;
		if(this == obj) return true;
		SubjectClassify other = (SubjectClassify)obj;
		return new EqualsBuilder()
			.append(getId(),other.getId())
			.isEquals();
	}
}

